package com.example.basic.web.controller.newlyManage;

import com.example.basic.core.result.Result;
import com.example.basic.core.result.ResultGenerator;
import com.example.basic.web.response.SysAdmireResponse;
import com.example.basic.web.service.newlyManage.ISysAdmireManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/v1/byg/admireManage")
public class SysAdmireManageController {

    @Autowired
    private ISysAdmireManageService sysAdmireManageService;

    @GetMapping("/list")
    public Result<List<SysAdmireResponse>> list(){
        return ResultGenerator.genSuccessResult(sysAdmireManageService.queryList());
    }

}
